﻿using BCCommon.FreightEnums;
using System;
using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.DisableArea
{
    /// <summary>
    /// 禁止装卸货区域请求模型
    /// </summary>
    public class DisableAreaRequestDto
    {
        /// <summary>
        /// 省份编码
        /// </summary>
        [Display(Name = "省份编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 城市编码
        /// </summary>
        [Display(Name = "城市编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CityCode { get; set; }
        /// <summary>
        /// 禁止类型（永久、时间段）
        /// </summary>
        [Display(Name = "禁止类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public DisableAreaType DisableType { get; set; }
        /// <summary>
        /// 允许开放时间
        /// </summary>
        [Display(Name = "允许开放时间")]
        public DateTime? OpenTime { get; set; }
        /// <summary>
        /// 允许结束时间
        /// </summary>
        [Display(Name = "允许结束时间")]
        public DateTime? CloseTime { get; set; }
        /// <summary>
        /// 已启用
        /// </summary>
        [Display(Name = "已启用")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool Enabled { get; set; }
        ///// <summary>
        ///// 坐标范围
        ///// </summary>
        ///// <returns></returns>
        //public IEnumerable<DisableAreaRangeCoordinateDto> RangeCoordinateList { get; set; }
        ///// <summary>
        ///// 车辆类型映射
        ///// </summary>
        //public IEnumerable<DisableAreaVehicleTypeReferenceDto> VehicleTypeReferenceList { get; set; }

        ///// <summary>
        ///// 禁止装卸区域Id
        ///// </summary>
        //[Display(Name = "禁止装卸区域Id")]
        //public long DisableAreaId { get; set; }
        ///// <summary>
        ///// 区县编码
        ///// </summary>
        //[Display(Name = "区县编码")]
        //public string CountyId { get; set; }
        ///// <summary>
        ///// 范围坐标
        ///// </summary>
        //[Display(Name = "范围坐标")]
        //public string RangeCoordinate { get; set; }
        ///// <summary>
        ///// 归属管理员Id
        ///// </summary>
        //[Display(Name = "归属管理员Id")]
        //public long? AdminId { get; set; }
        ///// <summary>
        ///// 创建时间
        ///// </summary>
        //[Display(Name = "创建时间")]
        //public DateTime? CreateTime { get; set; }
        ///// <summary>
        ///// 更新时间
        ///// </summary>
        //[Display(Name = "更新时间")]
        //public DateTime? UpdateTime { get; set; }
        ///// <summary>
        ///// 编辑人
        ///// </summary>
        //[Display(Name = "编辑人")]
        //public string Editer { get; set; }
        ///// <summary>
        ///// 编辑人管理员Id
        ///// </summary>
        //[Display(Name = "编辑人管理员Id")]
        //public long EditerAdminId { get; set; }
    }
}